/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evans.api.service;

import java.util.List;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 *
 * @author wangsunjie
 */
@Component
@FeignClient(value = "SPRINGCLOUD-PROVIDER-DEPT")
public interface DeptClientService {
    
    @GetMapping("/dept/get/{id}")
    public String queryById(@PathVariable("id") Long id);
    
    @GetMapping("/dept/queryAll")
    public List<String> queryAll();
    
    @PostMapping("/dept/add")
    public boolean add(String dept);
    
}
